package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.adm;


import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.CertificateType;

import java.util.List;
import java.util.Map;

public interface CertificateTypeMapper {
    /**
     * 删除证书
     * @param certificateTypeId
     * @return
     */
    int deleteByPrimaryKey(String[] certificateTypeId);

    /**
     * 新增证书
     * @param record
     * @return
     */
    int insert(CertificateType record);
    int insertSelective(CertificateType record);

    /**
     * 根据id查找证书
     * @param certificateTypeId
     * @return
     */
    CertificateType selectByPrimaryKey(String certificateTypeId);

    /**
     * 更新证书
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(CertificateType record);
    int updateByPrimaryKey(CertificateType record);
    /**
     * 模糊查询
     * @param map
     * @return
     */
    List<CertificateType> queryCertificateByName(Map<String, Object> map);

    /**
     * 岗位列表
     * @param bootstrapSearchBean
     * @return
     */
    List<CertificateType> queryList(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 数量
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);
}